﻿@model Bricks.Site.Models.YearPlanView
@{
    ViewBag.Title = "YearPlan";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}

<script src="@Url.Content("~/Res/Views/YearPlan.js")"></script>

<div class="easyui-panel" fit="true">
    <div id="divYearPlan" class="easyui-tabs" fit="true" data-options="onSelect:PreviewProcessGraph">
        <div title="年度计划明细" data-options="iconCls:'icon-none'" style="padding: 2px;">
            <div style="min-width: 1200px; overflow: auto">
                <div style="border: 1px solid #ddd; margin-bottom: 3px;">
                    <div id="myTreeToolBar">
                        @Html.Raw(ViewBag.ToolBarInfo)
                        <a href="#" id="btnCancel" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-ok'" onclick="CloseSelf();">关闭</a>
                    </div>
                </div>
                <div>
                    <div class="easyui-layout" style="min-height: 1200px;">
                        <div region="north" split="true" style="width: auto; height: 40px; padding: 1px;">
                            <form id="frmYearPlan" method="post">
                                <input type="hidden" id="hID" name="ID" value="@Model.ID" />
                                <input type="hidden" id="hFlowCode" name="FlowCode" value="@Model.FlowCode" />
                                <input type="hidden" id="hProjectID" name="ProjectID" value="@Model.ProjectID" />
                                <input type="hidden" id="hContractType" name="ContractType" value="@Model.ContractType" />
                                <input type="hidden" id="hContractID" name="ContractID" value="@Model.ContractID" />
                                <input type="hidden" id="hUnit" name="Unit" value="@Model.Unit" />
                                <input type="hidden" id="hRequestDate" name="RequestDate" value="@Model.RequestDate" />
                                <input type="hidden" id="hRequestNodeCode" name="RequestNodeCode" value="@Model.RequestNodeCode" />
                                <input type="hidden" id="hRequestUserDepartment" name="RequestUserDepartment" value="@Model.RequestUserDepartment" />
                                <input type="hidden" id="hRequestPerson" name="RequestPerson" value="@Model.RequestPerson" />
                                <input type="hidden" id="hHandleState" name="HandleState" value="@Model.HandleState" />
                                <input type="hidden" id="hAssociatedNodeCode" name="AssociatedNodeCode" value="@Model.AssociatedNodeCode" />
                                <input type="hidden" id="hLastUpdateUserDepartment" name="LastUpdateUserDepartment" value="@Model.LastUpdateUserDepartment" />
                                <input type="hidden" id="hLastUpdateUser" name="LastUpdateUser" value="@Model.LastUpdateUser" />
                                <input type="hidden" id="hSaveState" name="SaveState" value="@Model.SaveState" />

                                <input type="hidden" id="hYearPlanDetailListJson" name="YearPlanDetailListJson" value="@Model.YearPlanDetailListJson" />
                                <input type="hidden" id="hSourceType" name="SourceType" value="@Model.SourceType" />
                                <input type="hidden" id="hProcessType" name="ProcessType" value="@Model.ProcessType" />
                                <input type="hidden" id="hSourceID" name="SourceID" value="@Model.SourceID" />
                                <input type="hidden" id="hProcessdOrCirculatedNodeCode" name="ProcessdOrCirculatedNodeCode" value="@Model.ProcessdOrCirculatedNodeCode" />
                                <input type="hidden" id="hProcessdOrCirculatedUserDepartment" name="ProcessdOrCirculatedUserDepartment" value="@Model.ProcessdOrCirculatedUserDepartment" />
                                <table style="margin: 1px">
                                    <tr id="trRequest">
                                        <td style="width: 40px; text-align: right">年份</td>
                                        <td>
                                            <input id="StatisticalCycle" name="StatisticalCycle" class="easyui-combobox" data-options="required:true" value="@Model.StatisticalCycle" style="width: 180px;" />
                                        </td>
                                    </tr>
                                    <tr id="trCommon">
                                        <td style="width: 40px; text-align: right">年份</td>
                                        <td>
                                            <input name="StatisticalCycle" id="StatisticalCycle" class="easyui-textbox" data-options="required:true" value="@Model.StatisticalCycle" style="width: 175px;" readonly />
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                        <div region="center" border="false">
                            <div class="easyui-layout" fit="true">
                                <div region="north" title="年度计划明细" style="width: auto; height: 400px; padding: 1px;">
                                    <table id="yearPlanDetailsDataGrid" fit="true"></table>
                                </div>
                                <div region="center" border="false">
                                    <div class="easyui-layout" fit="true">
                                        <div region="north" title="已办列表" style="width: auto; height: 400px; padding: 1px;">
                                            <table id="myDataGrid" fit="true"></table>
                                        </div>
                                        <div region="center" border="false">
                                            <div class="easyui-layout" fit="true">
                                                <div region="north" title="传阅列表" style="width: auto; height: 200px; padding: 1px;">
                                                    <table id="myCirculatedDataGrid" fit="true"></table>
                                                </div>
                                                <div region="center" title="已阅列表" style="width: auto; height: 200px; padding: 1px;">
                                                    <table id="myReceiptDataGrid" fit="true"></table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div title="流程图" data-options="iconCls:'icon-none'" style="padding: 10px;">
            <div style="width: 100%; height: 5%;">
                <img alt="" src="../../images/workflow.bmp" />
            </div>
            <div id="graphContainer" style="overflow-y: scroll; width: 100%; height: 95%; background: url('../../images/grid.gif'); cursor: default;">
            </div>
        </div>
    </div>
</div>
<div id="yearPlanWindow"></div>
